package io.github.talelin.latticy.dto.receving;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
@NoArgsConstructor
public class ReceivingRecordSkuDTO {

    /**
     * 入库单编号
     */
    @NotBlank(message = "{inbound-order.id.not-empty}")
    private String inboundOrderNo;

    /**
     * 仓库code
     */
    @NotBlank(message = "{inbound-order.warehouseCode.not-empty}")
    private String warehouseCode;

    /**
     * 客户代码
     */
    private String tenant;

    /**
     * 转运物流单号
     */
    private String recordNo;

    /**
     * 备注
     */
    private String otherRemark;

    @Valid
    private List<ReceivingSkuDTO> skus;
}
